function This = lock(varargin)
% lock  Lock (disable) dynamic links or sstate update equations temporarily.
%
%
% Syntax
% =======
%
%     M = lock(M,'!links')
%     M = lock(M,'!links',Name1,Name2,...);
%     M = lock(M,'!sstate_update');
%     M = lock(M,'!sstate_update',Name1,Name2,...);
%
%
% Input arguments
% ================
%
% * `M` [ model ] - Model object.
%
% * `Name1`, `Name2` [ char ] - List of names whose links or sstate update
% equations will be temporarily locked.
%
%
% Output arguments
% =================
%
% * `M` [ model ] - Model object with dynamic links
% [`!links`](modellang/links) or steady-state update equations
% [`!sstate_update`](modellang/sstateupdate) temporarily disabled, until
% [`unlock`](model/unlock).
%
%
% Example
% ========
%

% -IRIS Toolbox.
% -Copyright (c) 2007-2015 IRIS Solutions Team.

%--------------------------------------------------------------------------

This = mylock(varargin{:},-1);

end
